<?php
/**
 * conf.d
 *
 * @version 0.2a
 */

// No direct access
defined( "__DEENZO__" ) or die( "deenzo$" );

function confd() {

    /** Load configuration files */
    $cd    = __DIR__ . "/chrome/conf.d";
    $confd = scandir( $cd );
    
    /* Search ENV.C for __PHP__ */
    foreach ( $confd as $c )    
         if ( preg_match( "/^env\.c/", $c ) )
         
            require_once "$cd/$c";
    
    if ( !defined( "__PHP__" ) ) 
        define( "__PHP__", "php" );
    
    /* Read rest of configuration files */
    foreach ( $confd as $c ) {
         if ( preg_match( "/^(?!\.|~)/", $c )
           && preg_match( "/\." . __PHP__  . "$/", $c ) )
           
            require_once "$cd/$c";
    }
    
    return true;
    
}